import request from '../utils/request';
export default {
  manage_list() {
    return request({
        url: '/manage',
        method: 'get',
        data: {},
        mock: false
    })
},

  update(params) {
    return request({
        url: '/update',
        method: 'post',
        data: params,
        mock: false
    })
},
Hello() {
  return request({
    url: '/hello',
    method: 'get',
    data: {},
    mock: false,
  });
},
weatherIndex(params) {
  return request({
    url: '/index',
    method: 'get',
    data: {params},
    mock: false,
  });
},



  login(params) {
    return request({
      url: '/users/login',
      method: 'post',
      data: params,
      mock: true,
    });
  },
  noticeCount(params) {
    return request({
      url: '/leave/count',
      method: 'get',
      data: {},
      mock: true,
    });
  },
  MenuList() {
    return request({
      url: '/menu/list',
      method: 'get',
      data: {},
      mock: true,
    });
  },
 
 
  getUserList(params) {
    return request({
      url: '/users/list',
      method: 'get',
      data: params,
    });
  },

  userDel(params) {
    return request({
      url: '/users/delete',
      method: 'post',
      data: params,
      mock: true,
    });
  },
  getRoleAllList() {
    return request({
      url: '/roles/allList',
      method: 'get',
      data: {},
      mock: false,
    });
  },
  getRoleList(params) {
    return request({
      url: '/roles/list',
      method: 'get',
      data: params,
      mock: false,
    });
  },
  getDeptList(params) {
    return request({
      url: '/dept/list',
      method: 'get',
      data: params,
      mock: false,
    });
  },
  deptOperate(params) {
    return request({
        url: '/dept/operate',
        method: 'post',
        data: params,
        mock: false
    })
},
  // 新增-提交
  userSubmit(params) {
    return request({
        url: '/users/operate',
        method: 'post',
        data: params,
        mock: false
    })
},
};
